package com.dk.mapper;

import com.dk.pojo.PersonRole;
import com.dk.pojo.PersonRoleExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface PersonRoleMapper {
    int countByExample(PersonRoleExample example);

    int deleteByExample(PersonRoleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(PersonRole record);

    int insertSelective(PersonRole record);

    List<PersonRole> selectByExample(PersonRoleExample example);

    PersonRole selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") PersonRole record, @Param("example") PersonRoleExample example);

    int updateByExample(@Param("record") PersonRole record, @Param("example") PersonRoleExample example);

    int updateByPrimaryKeySelective(PersonRole record);

    int updateByPrimaryKey(PersonRole record);

    void insertPidAndRid(@Param("pid") Integer pid, @Param("rid") Integer[] rid);

    List<Integer> selectPersonRoleByPid(Integer pid);
}